//
//  UIView+Extension.h
//  ObjcFrame
//
//  Created by Houge on 2020/3/30.
//  Copyright © 2020 ZHUNJIEE. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (Extension)
// xib显示属性设置项
@property(nonatomic, assign) IBInspectable CGFloat borderWidth;
@property(nonatomic, assign) IBInspectable UIColor *borderColor;
@property(nonatomic, assign) IBInspectable CGFloat cornerRadius;

+ (instancetype)BW_loadViewFromNib;
+ (instancetype)BW_loadViewFromNibName:(NSString *)nibName;

/// 获取当前显示的控制器
- (UIViewController *)getCurrentViewController;

/// 添加背景渐变色
- (void)insertGradientLayer;
/// 指定颜色渐变色
- (CAGradientLayer *)insertGradientColorWithStartColor:(UIColor *)startColor endColor:(UIColor *)endColor startPoint:(CGPoint)startPoint endPoint:(CGPoint)endPoint;

@end

NS_ASSUME_NONNULL_END
